package com.tubi.MyCountDownLatch;

import java.util.concurrent.CountDownLatch;

public class MOtner  extends  Thread{
    private  CountDownLatch countDownLatch;
    public MOtner(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }

    @Override
    public void run() {
        //等待
        try {
            countDownLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        //2.收拾
        System.out.println("妈妈在收拾");

    }
}
